import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export const constantRouterMap = [{
  path: '/child',
  component: () => import('@/views/child')
}];

export default new Router({
  // mode: 'history', //后端支持可开  
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap, //   createMyRouter()
});